<?php include_partial('tasks/css') ?>
<div id='nodeList' class='nodeNavDiv' route='TaskTreeR'>
  <?php include_partial('tasks/node', array('node'=>$parent)) ?>
</div>
<div id='nodeData' class='nodeData'>
  <?php include_partial('tasks/nodeData', array('node'=>$parent)) ?>
</div>
<br class="clear"/>
<script>
  <?php if($id): ?>
    alert('id');
    showNode = function() {
      TaskTreeC.openParents(
        <?php echo $id ?>,
        function() {
          TaskTreeC.scrollTo(<?php echo $id ?>);
        }
      );
      TaskC.showNodeData({id:<?php echo $id ?>});
    };
  <?php else: ?>
    showNode = function() {};
  <?php endif; ?>
  TaskTreeC.toggleBacklogs(1,1);
  TaskTreeC.closeFromLevel(1,1);
  var t=setTimeout("showNode()",500);
</script>